<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<input type="text" id="input1" /><br /><br />
		<input type="button" value="c" onclick="qingling()" />
		<input type="button" value="0" onclick="zero()" /><br />
		<input type="button" value="1" onclick="one()" />
		<input type="button" value="2" onclick="two()" />
		<input type="button" value="3" onclick="three()" /><br />
		<input type="button" value="4" onclick="four()" />
		<input type="button" value="5" onclick="five()" />
		<input type="button" value="6" onclick="six()" /><br />
		<input type="button" value="7" onclick="seven()" />
		<input type="button" value="8" onclick="eight()" />
		<input type="button" value="9" onclick="nine()" />
		<script>
			var zero = function() {
				input1.value = input1.value + "0";
			}
			var one = function() {
				input1.value = input1.value + "1";
			}
			var two = function() {
				input1.value = input1.value + "2";
			}
			var three = function() {
				input1.value = input1.value + "3";
			}
			var four = function() {
				input1.value = input1.value + "4";
			}
			var five = function() {
				input1.value = input1.value + "5";
			}
			var six = function() {
				input1.value = input1.value + "6";
			}
			var seven = function() {
				input1.value = input1.value + "7";
			}
			var eight= function() {
				input1.value = input1.value + "8";
			}
			var nine = function() {
				input1.value = input1.value + "9";
			}
			var qingling = function() {
				input1.value = "";
			}
		</script>
	</body>

</html>